<template>
  <div class="body" id="root">
    <!-- 头部 -->
    <div class="header">
      <img src="../img/runoob-logo.png" />
      <input type="text" placeholder="html教程" />
    </div>
    <!-- 导航栏 -->
    <div class="topbar">
      <ul class="pc-nav">
        <li v-for="(item, index) in dhl" :key="index">
          <a href="">{{ item.message }}</a>
        </li>
      </ul>
    </div>
    <!-- 内容 -->
    <div class="main">
      <div class="left">
        <div class="lanmu">
          <img src="../img/lanmu.png" />
          <div class="text">HTML教程</div>
        </div>
        <ul class="ult">
          <li v-for="(item_1, index) in nr" :key="index">
            <a href="">{{ item_1.message }}</a>
          </li>
        </ul>
      </div>
      <div class="midle">
        <div class="top">
          <div class="left1">〈 HTML表单</div>
          <div class="right1">HTML表单 〉</div>
        </div>
        <div class="title">
          <h1>33<text>农波杰</text></h1>
        </div>
        <div class="title-mini">通过使用框架，你可以在同一个浏览器窗口中显示不止一个页面。</div>
        <iframe src="https://www.csdn.net/"></iframe>
      </div>
      <div class="right">
        <div class="rup">
          <img src="../img/lanmu.png" />
          <div>有关连接</div>
        </div>
        <ul class="ul2">
          <li v-for="(item_2, index) in lj" :key="index">
            <a href="">{{ item_2.message }}</a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script type="text/javascript">
export default {
  name: "runoob_vue",
  data() {
    return {
      dhl: [
        { message: "首页" },
        { message: "Html" },
        { message: "Css" },
        { message: "javascript" },
        { message: "Vue" },
        { message: "Bootstrap" },
        { message: "NodeJS" },
        { message: "Python3" },
        { message: "Python2" },
        { message: "Java" },
        { message: "C" },
        { message: "C++" },
        { message: "C#" },
        { message: "GO" },
        { message: "SQL" },
        { message: "Linux" },
        { message: "JQuery" },
        { message: "本地书签" },
      ],
      nr: [
        { message: "教程" },
        { message: "简介" },
        { message: "编辑器" },
        { message: "基础" },
        { message: "元素" },
        { message: "属性" },
        { message: "标签" },
        { message: "段落" },
        { message: "文本格式化" },
        { message: "链接" },
        { message: "教程1" },
        { message: "教程2" },
        { message: "教程3" },
        { message: "教程4" },
        { message: "教程5" },
        { message: "教程6" },
      ],
      lj: [
        { message: "CSDN" },
        { message: "Git" },
        { message: "Youtube" },
        { message: "Bilibili" },
        { message: "尚硅谷" },
        { message: "51cot" },
        { message: "W3cSchool" },
        { message: "黑马教程" },
        { message: "慕课网" },
        { message: "网易云课堂" },
        { message: "腾讯课堂" },
      ],
    };
  },
};
</script>

<style scoped>
* {
  margin: 0 auto;
  padding: 0;
}
.body {
  background-color: RGB(246, 246, 246);
}
.header {
  box-sizing: border-box;
  width: 1260px;
  margin: 0 auto;

  margin-top: 30px;
  height: 70px;
  padding: 0 25px;
  margin-bottom: 20px;
}
.header img {
  margin-top: 15px;
}
.header input {
  margin-top: 10px;
  float: right;
  height: 48px;
  width: 420px;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 0 15px;
  font-size: 18px;
  background-color: white;
  box-shadow: 0px 4px 9px rgb(0 0 0 / 20%);
}
.topbar {
  background-color: #96b97d;
  width: 100%;
}
.topbar ul {
  display: flex;
  list-style: none;
  width: 1260px;
  margin: 0 auto;
  background-color: #96b97d;
  justify-content: space-between;
}
.topbar ul > li {
  flex-grow: 1;

  display: flex;
  text-align: center;
}
.topbar a {
  height: 40px;
  line-height: 40px;
  background-color: #96b97d;
  text-decoration: none;
  flex-grow: 1;
  margin: 0 auto;
  color: rgb(255, 255, 255);
}
.topbar a:hover {
  color: dimgray;
}
.main {
  margin: 0 auto;
  width: 1260px;
  margin-top: 20px;

  display: flex;
  justify-content: space-between;
}
.main .left {
  width: 250px;
  background-color: rgb(255, 255, 255);
  height: auto;
}
.main .midle {
  background-color: rgb(255, 255, 255);
  width: 760px;
  height: 550px;
}
.main .right {
  width: 210px;
  height: 100px;
}
.left .lanmu {
  background-color: RGB(234, 234, 235);
  text-shadow: 0 1px 0 rgb(255 255 255 / 15%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #64854c;
  box-sizing: border-box;
  padding-left: 4px;
  display: flex;
  justify-content: flex-start;
}
.left .lanmu img {
  display: block;
}
.left .lanmu .text {
  display: block;
  background-color: RGB(234, 234, 235);
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  margin-right: 80px;
  padding-top: 2px;
}
.left ul {
  list-style: none;
  margin: 3px 5px;
}
.left ul > li {
  line-height: 30px;
  background-color: #f6f4f0;
  text-decoration: none;
  display: block;
  padding: 4px;
  border-bottom: 1px solid #efefef;
  color: rgb(63, 62, 62);
  font-size: 15px;
  padding-left: 10px;
}

.left ul > li:hover {
  color: rgb(0, 0, 0);
  font-weight: bold;
}
.left ul > li:nth-child(1) {
  background-color: rgb(150, 185, 125);
  font-weight: bold;
  color: rgb(255, 255, 255);
}

.main .midle .top {
  background-color: RGB(251, 251, 251);
  width: 100%;
  height: 45px;
  overflow: hidden;
  padding: 0px 10px;
  line-height: 45px;
  background: #fbfbfb;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  color: #8590a6;
  font-size: 15px;
  border: 1px solid #e7eaf1;
  box-shadow: 0 1px 3px rgb(0 37 55 / 5%);
  box-sizing: border-box;
}
.main .midle .top .left1 {
  float: left;
}
.main .midle .top .right1 {
  float: right;
}
.main .midle .title {
  background-color: #ffff !important;
  width: 95%;
  height: 50px;
  line-height: 50px;
  padding-left: 10px;
  font-size: 12px;
}
.main .midle .title h1 {
  background-color: white;
  border-bottom: 1px solid rgb(221, 218, 218);
}
.main .midle .title text {
  color: rgb(67, 110, 37);
  background-color: white;
}
.main .midle .title-mini {
  margin-top: 5px;
  width: 95%;
  font-size: 14px;
  background-color: white;
  border-bottom: 20px;
}
.main .midle iframe {
  display: block;
  width: 95%;
  height: 400px;
  margin: 0 auto;
  margin-top: 10px;
  border: none;
}

.right .ul2 {
  padding-top: 2px;
  list-style-type: none;
  width: 250px;
  height: 337px;
  background-color: #ffffff;
}

.right .ul2 li {
  width: 95%;
  height: 30px;
  background-color: #dee9d6;
  border-bottom: #676e62 1px solid;
  font-size: 20px;
  padding-left: 10px;
  box-sizing: border-box;
}

.right .rup {
  width: 250px;
  background-color: RGB(234, 234, 235);
  height: auto;
  border: #676e62 1px solid;
}

.right .rup img {
  padding-left: 10px;
}

.right .rup div {
  box-sizing: border-box;
  text-align: center;
  color: #64854c;
  float: right;
  /* background-color: aqua; */
  width: 70%;
  height: 47px;
  line-height: 47px;
  font-size: 23px;
  font-weight: bold;
  padding-right: 50px;
}
</style>
